/**
 * Created by robin.tian on 17-2-10.
 */
var settings = require("./settings");
var mongoose = require('mongoose');
mongoose.connect("mongodb://" + settings.ip + "/" + settings.db);
var db = mongoose.connection;
module.exports = {
    "dbCon": db,
    "mongoose": mongoose
};